// 导入HTTP请求工具类
import http from "./http";

// 登录方法
const login = (email, password) => {
  const path = "/auth/login"; // 登录接口路径
  // 发送POST请求，传递邮箱和密码
  return http.post(path, { email, password });
};
const resetPwd = (oldpwd, pwd1, pwd2) => {
  const path = "/auth/resetpwd";
  return http.post(path, { oldpwd, pwd1, pwd2 });
};

// 导出认证相关的API方法
export default {
  login,
  resetPwd,
};
